home *** CD-ROM | disk | FTP | other *** search
- property mySprite, myType, myRegion, ancestor, curItem, curCost
-
- on beginSprite me
- global gUserDataMan, gActorListMan
- unRegisterSprite(gActorListMan, mySprite)
- mySprite = me.spriteNum
- myRegion = getCurRegion(gUserDataMan)
- myType = #SpecialFeaturesDisplay
- registerSprite(gActorListMan, mySprite)
- initSpecialFeaturesDisplay(me)
- end
-
- on sendSpriteNum me, aType
- if aType = myType then
- return mySprite
- end if
- end
-
- on initSpecialFeaturesDisplay me
- global gConMan
- curItem = getNextOutdoorItem(gConMan)
- set the member of sprite mySprite to member(curItem)
- updateToolBarText(me)
- end
-
- on updateToolBarText me
- global gToolBarTextMan, gCostMan
- curCost = getOutDoorItemCost(gCostMan, symbol(curItem))
- itemString = getItemString(me)
- displayString = "To install this" && itemString & ", hit the PURCHASE button. If you do not want to purchase this item, select CANCEL."
- put RETURN & "Cost:" && formatMonetaryForDisplay(curCost) after displayString
- useString = 1
- setToolBarText(gToolBarTextMan, displayString, useString)
- end
-
- on getItemString me
- curItemToCompare = string(curItem)
- case 1 of
- (curItemToCompare contains "gazebo"):
- itemString = "gazebo"
- (curItemToCompare contains "skate"):
- itemString = "skateboard park"
- (curItemToCompare contains "basket"):
- itemString = "bastketball court"
- (curItemToCompare contains "garage"):
- itemString = "garage"
- (curItemToCompare contains "spa"):
- itemString = "spa"
- (curItemToCompare contains "pool"):
- itemString = "pool"
- (curItemToCompare contains "patio"):
- itemString = "patio"
- otherwise:
- return curItemToCompare
- end case
- return itemString
- end
-
- on endSprite me
- global gActorListMan
- unRegisterSprite(gActorListMan, mySprite)
- end
-
- on getCurItem me
- return curItem
- end
-
- on getCurCost me
- return curCost
- end
-